#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2018-02-01 16:38:03

import time


def writeLog(logfile):
    with open(logfile, 'a+') as f:
        for i in range(100):
            f.write('%s\n' % i)
            time.sleep(3)


if __name__ == "__main__":
    writeLog('test.log')
